package org.jeecg.modules.jxc.sales_management.salelist_Search.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.jxc.sales_management.salelist_Search.entity.JxcCustomer;
import org.jeecg.modules.jxc.sales_management.salelist_Search.mapper.JxcCustomerMapper;
import org.jeecg.modules.jxc.sales_management.salelist_Search.service.IJxcCustomerService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: jxc_customer
 * @Author: jeecg-boot
 * @Date:   2021-12-21
 * @Version: V1.0
 */
@Service
public class JxcCustomerServiceImpl extends ServiceImpl<JxcCustomerMapper, JxcCustomer> implements IJxcCustomerService {
@Resource
private JxcCustomerMapper jxcCustomerMapper;
    @Override
    public List<JxcCustomer> selectCustomer() {

        return jxcCustomerMapper.selectCustomerList();
    }

    @Override
    public List<JxcCustomer> selectBycontact(String contacts) {
        QueryWrapper<JxcCustomer> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("contacts",contacts)
        ;
        List<JxcCustomer> jxcCustomer = jxcCustomerMapper.selectList(queryWrapper);
        return  jxcCustomer;

    }
}
